I am getting a below error : -R-E- DXL: <Line:14> The value '{\rtf1\deff1000{\fonttbl{\f1016\fswiss\fcharset134 Tahoma;}{\f1015\fswiss\fcharset136 Tahoma;}{\f1014\fswiss\fcharset129 Tahoma;}{\f1013\fswiss\fcharset128 Tahoma;}{\f1012\fswiss\fcharset177 Arial;}{\f1011\fswiss\fcharset162 Arial;}{\f1010\fswiss\fcharset238 Arial;}{\f1009\fswiss\fcharset204 Arial;}{\f1008\fswiss\fcharset161 Arial;}{\f1007\fswiss\fcharset0 Arial;}{\f1006\froman\fcharset177 Times New Roman;}{\f1005\froman\fcharset162 Times New Roman;}{\f1004\froman\fcharset238 Times New Roman;}{\f1003\froman\fcharset204 Times New Roman;}{\f1002\froman\fcharset161 Times New Roman;}{\f1001\ftech\fcharset2 Symbol;}{\f1000\froman\fcharset0 Times New Roman;}}{{\colortbl ;\red255\green0\blue0;\red0\green255\blue0;\red0\green0\blue255;}{\b\cf3\ xxxx}}}
' is not valid for type 'Version_list'
Backtrace:
<Line:110>
-I- DXL: execution halted
I believe the above error is due to these lines:
diff(bufDiff, bufOld, bufCur, "\\cf1\\strike ", "\\b\\cf3\\b ")
Text = Text stringOf(bufDiff) " \n"
displayRichWithColor(Text)
delete(bufDiff)
can someone explain what exactly " "\\cf1\\strike " && "\\b\\cf3\\b " they convey ,
Details:
declared as
proposedText = richTextWithOle obj."Proposed Object Text" (bufCur)
currentText= richTextWithOle obj."Object Text" (buf Old)
ashokanumula - Mon Nov 25 03:33:10 EST 2013 |
Re: Error : "' is not valid for type 'Version_list'" Parameter 4 of "diff" is how to mark-up removed text. "\\cf1\\strke " means color it color #1, typically Red, and use font strike-out. Parameter 5 of "diff" is how to mark-up inserted text. "\\b\\cf3 " means bold it and color it color #3, typically Blue. By default, this value is "\\cf3\\ul " meaning Blue and underlined. Surely you can find line 14 and tell us exactly which it is. Reading the error (and ignoring your code), I'd say you were attempting to put that rich text string into attribute "Version_list", which is of type "String" and not type "Text". Nit-pick: Reading your "diff" line; this is not right: [\\b\\cf3\\b ] . The second \\b is redundant. I wonder if perhaps you intend to turn OFF bolding, which would be [\\b0]. But that is not needed since the inserted text will be backeted in the rich text, and the ending bracket will auto-end the bolding. Also looking at your string, I'd say the "diff" command recognizes the redundancy and removes it; since i see this at the end: {\b\cf3\ xxxx} But WAIT! Looking closely at {\b\cf3\ xxxx}, I see a trailing slash after the "cf3", which does not look right. If you fix your "diff" command to this: "\\b\\cf3 " then perhaps it would work. I don't think you need to displayRich a "\n". If you did yo would displayRich "\\par " instead. But displayRich auto adds an EOL so I don't think you need one. -Louie |
Re: Error : "' is not valid for type 'Version_list'" llandale - Tue Nov 26 10:28:14 EST 2013 Parameter 4 of "diff" is how to mark-up removed text. "\\cf1\\strke " means color it color #1, typically Red, and use font strike-out. Parameter 5 of "diff" is how to mark-up inserted text. "\\b\\cf3 " means bold it and color it color #3, typically Blue. By default, this value is "\\cf3\\ul " meaning Blue and underlined. Surely you can find line 14 and tell us exactly which it is. Reading the error (and ignoring your code), I'd say you were attempting to put that rich text string into attribute "Version_list", which is of type "String" and not type "Text". Nit-pick: Reading your "diff" line; this is not right: [\\b\\cf3\\b ] . The second \\b is redundant. I wonder if perhaps you intend to turn OFF bolding, which would be [\\b0]. But that is not needed since the inserted text will be backeted in the rich text, and the ending bracket will auto-end the bolding. Also looking at your string, I'd say the "diff" command recognizes the redundancy and removes it; since i see this at the end: {\b\cf3\ xxxx} But WAIT! Looking closely at {\b\cf3\ xxxx}, I see a trailing slash after the "cf3", which does not look right. If you fix your "diff" command to this: "\\b\\cf3 " then perhaps it would work. I don't think you need to displayRich a "\n". If you did yo would displayRich "\\par " instead. But displayRich auto adds an EOL so I don't think you need one. -Louie Thank you ..This was helpful .... The error was because of "Reading the error (and ignoring your code), I'd say you were attempting to put that rich text string into attribute "Version_list", which is of type "String" and not type "Text"." I shall delete the attribute (type: "Version_list") and create the one of Type "Text"
|